package chap4;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class SalaryTax {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double m=sc.nextDouble();
        double tax=0;
        if(m>15000){
            tax=(m-15000)*0.15+(15000-8000)*0.1+(8000-3500)*0.05;
        }else if(m>8000){
            tax=(m-8000)*0.1+(8000-3500)*0.05;
        }else if(m>3500){
            tax=(m-3500)*0.05;
        }else{
            tax=0;
        }
        System.out.println("应交个税"+tax+"元");
    }
}
